Conditional jumps
You will solve the exercises starting from the hello_world.asm
file located in the drills/tasks/conditional-jumps
directory.
Modify the program so that the message is displayed only if the content of the
eax
register is greater than that ofebx
. Also, modify the values of the registers to continue displaying the message"Hello, World!"
.Modify the program to also display
"Goodbye, World!"
at the end.Using jump instructions, modify the program to display
"Hello, World!"
N times, where N is given through theecx
register. Avoid infinite looping.
TIP: After successful completion, the program should display:
Hello, World!
Hello, World!
Hello, World!
Hello, World!
Hello, World!
Hello, World!
Goodbye, World!
If you're having difficulties solving this exercise, go through this reading material.